package com.shrct.businessprocess.common.impl;

import com.shrct.businessprocess.common.RCSystemConfiguration;
import com.shrct.businessprocess.common.proxy.RCSystemConfigurationProxy;
import edu.fudan.mylang.pf.BaseModelObject;
import edu.fudan.mylang.pf.IObjectFactory;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.hibernate.annotations.DiscriminatorOptions;

@Entity
@DiscriminatorValue("RCSYSTEMCONFIGURATION_TYPE")
@DiscriminatorOptions(force = true)
@DiscriminatorColumn(length = 64)
@Table(name = "rcsystemconfiguration")
public class RCSystemConfigurationImpl extends BaseModelObject implements RCSystemConfiguration {
  public RCSystemConfigurationImpl() {
    super();
  }
  
  private Double usdollarExchangeRate;
  
  public Double getUsdollarExchangeRate() {
    return this.usdollarExchangeRate;
  }
  
  public RCSystemConfiguration setUsdollarExchangeRate(final Double usdollarExchangeRate) {
    this.usdollarExchangeRate = usdollarExchangeRate;
    return this;			
    
  }
  
  public static RCSystemConfiguration create(final IObjectFactory objectFactory) {
    com.shrct.businessprocess.common.RCSystemConfiguration rCSystemConfiguration = new com.shrct.businessprocess.common.impl.RCSystemConfigurationImpl(
    );
    objectFactory.create(rCSystemConfiguration);
    return rCSystemConfiguration;			
    
  }
  
  public static RCSystemConfiguration createRCSystemConfigurationImpl(final IObjectFactory objectFactory, final Procedure1<RCSystemConfiguration> init) {
    com.shrct.businessprocess.common.RCSystemConfiguration rCSystemConfiguration = new com.shrct.businessprocess.common.impl.RCSystemConfigurationImpl(
    );
    objectFactory.create(rCSystemConfiguration);
    init.apply(rCSystemConfiguration);
    
    return rCSystemConfiguration;			
    
  }
  
  public RCSystemConfigurationProxy toProxy() {
    com.shrct.businessprocess.common.proxy.RCSystemConfigurationProxy proxy = new com.shrct.businessprocess.common.proxy.RCSystemConfigurationProxy();
    proxy.setId(this.getId());
    if(this instanceof edu.fudan.mylang.pf.INamedModelObject){
    	proxy.setName(((edu.fudan.mylang.pf.INamedModelObject)this).getEntityName());
    }
    return proxy;
    
  }
}
